package net.oschina.app.previousTest;

import android.test.ActivityInstrumentationTestCase2;

import com.robotium.solo.Solo;

import net.oschina.app.AppStart;

/**
 * Created by Administrator on 2017/6/30.
 */

public class HelloWorld extends ActivityInstrumentationTestCase2 {

    private Solo solo;

    public HelloWorld() {
        super(AppStart.class);
    }

    @Override
    public void setUp() throws Exception {
        super.setUp();
        solo = new Solo(getInstrumentation(), getActivity());
    }

    public void testName() throws Exception {
        // 点击页面上的 博客
        solo.clickOnText("博客");
        solo.sleep(2000);

    }

    @Override
    public void tearDown() throws Exception {
        solo.finishOpenedActivities();
        super.tearDown();
    }
}
